package com.usian.controller;

import com.usian.designer.HomeCategories;
import com.usian.service.CategoriesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/app/users/destination")
public class CategoriesController {

    @Autowired
    private CategoriesService categoriesService;

    @RequestMapping("/getDestination")
    public List<HomeCategories> getDestination(){
        return categoriesService.getCategories();
    }
}
